<?php
class News extends AppModel{
    var $useTable = "rs_news";
    public $name = "News";
	var $primaryKey = "newsId";
	var $foreignKey = "categoryId";
    var $belongsTo = array(
        'Category' => array(
            'className'    => 'Category',
            'conditions'   => '',
            'order'        => '',
            'fields'        => array('Category.category','Category.categoryId','Category.slug','Category.rss','Category.active','Category.order'),
            'dependent'    =>  true,
            'foreignKey'   => 'categoryId'
        ),
    );
}